package com.gxuwz.prrs.bean;

import java.util.List;

/**
 * @author 张钧
 * @Description
 * @create 2023-05-24 下午 04:08
 */
public class Page<T> {
	protected List<T> records;
	protected long total;
	protected long size = 5;
	protected long current;

	@Override
	public String toString() {
		return "Page{" +
				"records=" + records +
				", total=" + total +
				", size=" + size +
				", current=" + current +
				'}';
	}

	public List<T> getRecords() {
		return records;
	}

	public Page<T> setRecords(List<T> records) {
		this.records = records;
		return this;
	}

	public long getTotal() {
		return total;
	}

	public Page<T> setTotal(long total) {
		this.total = total;
		return this;
	}

	public long getSize() {
		return size;
	}

	public Page<T> setSize(long size) {
		this.size = size;
		return this;
	}

	public long getCurrent() {
		return current;
	}

	public Page<T> setCurrent(long current) {
		this.current = current;
		return this;
	}
}
